import 'package:sow_app_core/sow_app_core.dart';

import '../../util/share_preferences/preferences.dart';

class PrefCacheRepository implements CacheRepository {
  final Preferences preferences;

  PrefCacheRepository(this.preferences);
  @override
  Future<String> get(String key) => preferences.getString(key);

  @override
  Future<void> set(String key, String value) =>
      preferences.setString(key, value);
}
